const cart = (state = {
  cartList: []
}, action) => {
  switch (action.type) {
    case 'UPDATA_CART_LIST':
      return { ...state, cartList: action.payload }
    default:
      return state
  }
}

export default cart